import numpy as np

# 从CSV文件中读取数据
data = np.genfromtxt("./height.csv", delimiter=',', dtype=float, usecols=(0, 1))

# 分离年龄和身高
ages = data[:, 0].astype(int)  # 年龄
heights = data[:, 1].astype(int)  # 身高

# 使用bincount统计年龄和身高的分布
age_counts = np.bincount(ages)
height_counts = np.bincount(heights)

# 打印结果
print("Age counts:", age_counts)
print("Height counts:", height_counts)